/*
 * @Author: Jimmy
 * @LastModifiedBy: Jimmy
 * @Date: 2025-02-09 16:58:35
 * @LastEditTime: 2025-05-19 20:01:23
 * @FilePath: /monitor_belt/src/api/stream/index.ts
 */

import { http } from "@/utils/request";
import {  TResponse } from "../index.type";

// 启动视频推流
export const startStream = (cam_id?: string) => {
    return http.post<TResponse>(`/video/stream/start`, {cam_id});
}

// 停止视频拉流
export const stopStream = (cam_id: string) => {
    return http.post<TResponse>(`/video/stream/stop`, {cam_id});
}

//播放视频流
export const getStreaming = (id:number)=>{
    return http.get<TResponse>(`/video/streaming/${id}`);
}